package com.pandora.credit.dao;

import com.pandora.credit.entity.Version;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author developer
 */
public interface VersionDao {

    /**
     * queryByPvv
     * @param platform platform
     * @param version version
     * @param valid valid
     * @return VersionList
     */
    List<Version> queryByPvv(@Param("platform") String platform, @Param("version") String version, @Param("valid") int valid);

    /**
     * queryList
     * @param platform platform
     * @param version version
     * @param valid valid
     * @return VersionList
     */
    List<Version> queryList(@Param("platform") String platform, @Param("version") String version, @Param("valid") int valid);

    /**
     * insert
     * @param version version
     */
    void insert(Version version);

    /**
     * update
     * @param version version
     */
    void update(Version version);
}
